package com.bicon.botu.medical.model.entity

import com.alibaba.fastjson.annotation.JSONField
import com.baomidou.mybatisplus.annotations.TableField
import com.baomidou.mybatisplus.annotations.TableName
import com.bicon.botu.core.base.repository.mybatis.UuidBaseEntity
import com.bicon.botu.medical.model.dto.UserHealthDataDTO

/**
 * 健康排行榜实体
 *
 * @author 刘小鹏
 * @date 2018/07/17
 */
@TableName("t_h_health_exp")
data class HealthExp(
        /**
         * 用户id
         */
        @TableField("user_id")
        var userId: String? = null,
        /**
         * 健康指数得分
         */
        @TableField("health_exp")
        @JSONField(name = "expValue")
        var healthExp: Int = 0,

        /**
         * 昨日健康指数
         */
        @TableField("yesterday_exp_value")
        var yesterdayExpValue: Int = 0,

        /**
         * 星级
         */
        @TableField("star")
        var star: Int? = null,
        /**
         * 等级
         */
        @TableField("level")
        var level: String? = null,
        /**
         * 提示语
         */
        @TableField("tip")
        var tip: String? = null


) : UuidBaseEntity<HealthExp>()
